package com.test;

public class Ex04_7{
	public static void main(String agrs[]){
		int total = 0;		
		for (int i = 1; i <= 10; i++) {
			//total = total + i;
			//total += i;
			
			System.out.println(i);
			total = (i*(i+1))/2;	
		}
		
		System.out.println(total);
	}
}
	